namespace TS2015.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("TbTinTuc")]
    public partial class TbTinTuc
    {
        [Key]
        public long MaTinTuc { get; set; }

        [Required]
        [StringLength(200)]
        public string TieuDe { get; set; }

        [StringLength(100)]
        public string AnhDaiDien { get; set; }

        [StringLength(500)]
        public string MoTa { get; set; }

        [Column(TypeName = "ntext")]
        [Required]
        public string NoiDung { get; set; }

        public DateTime NgayDang { get; set; }

        public int MaLoaiTinTuc { get; set; }

        public virtual TbLoaiTinTuc TbLoaiTinTuc { get; set; }
    }
}
